﻿@using asMeishi.web.Models
@using publicLibrary
@{
    Layout = null;
    ViewBag.url = Request.RawUrl;
}
@if (userC.isLogin)
{
    <label>@userC.loginUser.email</label>
    <label>@Html.ActionLink("我的美食", "LogOff", "home", new { url = ViewBag.url }, new { @class = "xxxx" })</label>
    <label>@Html.ActionLink("我的资料", "LogOff", "home", new { url = ViewBag.url }, new { @class = "xxxx" })</label>
    <label>@Html.ActionLink("我的点评", "LogOff", "home", new { url = ViewBag.url }, new { @class = "xxxx" })</label>
}
else
{
    using (Html.BeginForm("LogOn", "home"))
    {
    <div>
        <label>@TempData["info"]</label>
        电子邮件：<input type="text" name="email" />
        密码：<input type="password" name="password" />
        <input type="hidden" name="url" value="@ViewBag.url" />
        <input type="submit" value="登录" />
        @Html.ActionLink("注册", "Index", "register") @Html.ActionLink("忘记密码", "xx")

    </div>
    }
}
